﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="EditEmailTemplate.aspx.cs" Inherits="Admin_EmailTemplates_EditEmailTemplate" Title="Untitled Page" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
    <table cellpadding="10" border="0" cellspacing="10" class="table_area">
        <tr>
            <td colspan="2" class="heading-text">
                Update Email Template
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td class="label-text">Title</td>
            <td align="left">
                <asp:DropDownList ID="ddlTemplateTitle" runat="server" Width="300px">
                    <asp:ListItem Text="Select One" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Registration Mail Template" Value="RegistrationMailTemplate"></asp:ListItem>
                    <asp:ListItem Text="Welcome Mail" Value="WelcomeMail"></asp:ListItem>
                    <asp:ListItem Text="Password Recovery Mail" Value="PasswordRecoveryMail"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rqvTemplateTitle" runat="server" ControlToValidate="ddlTemplateTitle"
                    Display="Dynamic" ErrorMessage="Required" InitialValue="-1" SetFocusOnError="true">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label-text">Subject</td>
            <td>
                <asp:TextBox ID="tbxTemplateSubject" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label-text">Body</td>
            <td align="center">
                <FCKeditorV2:FCKeditor ID="fckMailTemplateBody" runat="server" Width="800px" Height="400px"></FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td align="right"><asp:Button ID="btnUpdate" runat="server" OnClick="Update_Click" Text="Update" CssClass="button" /></td>
        </tr>
    </table>
</asp:Content>

